<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>种类下的商品信息</title>
    <link href="../../lib/layui-v2.6.3/css/layui.css" media="all" rel="stylesheet">
    <link href="../../css/public.css" media="all" rel="stylesheet">
    <link href="../../css/diy/form1.css" rel="stylesheet">
    <script src="../../lib/layui-v2.6.3/layui.js"></script>
    <script src="../../lib/jquery-3.4.1/jquery-3.4.1.min.js"></script>
</head>
<body>
<div id="kindUpDataDiv">
    <table class="layui-table" id="kind_commodityTable"></table>
</div>
<script>
    layui.use('table', function () {
        var table = layui.table;
        table.render({
            elem: '#kind_commodityTable'
            , width: 800
            , height: 460
            , method: 'post'
            , title: '商品数据表'
            , url: '/queryKindUpdata'
            , page: true
            , limit: 10
            , even: true
            , request: {
                pageName: 'thispage'
                , limitName: 'sizepage'
            }
            , cols: [[
                {field: 'id', title: 'ID', width: 80, sort: true, fixed: 'left'}
                , {field: 'c_name', title: '商品名称', width: 250}
                , {field: 'c_price', title: '商品价格', width: 100}
            ]]
        });
    })
</script>
</body>
</html>